/*
 * mcbsp.h
 *
 *  Created on: 2021-4-24
 *      Author: yangx
 */

#ifndef MCBSP_H_
#define MCBSP_H_

#include <tistdtypes.h>

void InitMcbsp();
void OpenMcbsp();
void WriteBoot();
void WriteBootData(Uint32 address, Uint16* data, Uint16 len);
void ReadBoot();
void ReadBootData(Uint32 address, Uint16* data, Uint16 len);
void Delay(int ms);
void ReadRdid();
Uint16 ReadData(Uint32 address);
void WriteData(Uint32 address, Uint16 data);
void EraseFlash();

#endif /* MCBSP_H_ */
